---
sidebar_position: 2
---

import { TestFile } from '../../src/components/CustomSandpack';

# .fail(message)

Failing assertion.

<TestFile name="fail">
  {`test('fail', () => {
  expect().fail('test should fail');
});`}
</TestFile>
